/**
 * @author caesar
 * @date 2025/7/1
 * @apiNote
 */
/*
第3题：26个字母
（1）用一个数组存储26个英文字母的小写形式a-z
（2）正序遍历输出小写字母
（3）逆序遍历输出小写字母*/
public class practice1_3 {
    public static void main(String[] args) {
        char[] letter = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
        for (int i = 0; i < letter.length; i++) {
            System.out.print(letter[i]+" ");
            if(i == letter.length-1)
                System.out.println();
        }
        for (int i = letter.length-1; i >= 0; i--) {
            System.out.print(letter[i]+" ");
        }
    }
}
